From 74c444d071c3123eedae0d760ea538b7e75c46b7 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 31 Oct 2005 23:54:24 +0000 Subject: [PATCH] Ozi: Don't do the wierd name splitting thing for multimode input if we're writing to stdout. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1511 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/ozi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gpsbabel/ozi.c b/gpsbabel/ozi.c index ce48e8f6e..b33d1f917 100644 --- a/gpsbabel/ozi.c +++ b/gpsbabel/ozi.c @@ -69,9 +69,14 @@ ozi_openfile(char *fname) { char buff[32]; /* if we're doing multi-track output, sequence the filenames like: - * mytrack.plt, mytrack-1.plt... + * mytrack.plt, mytrack-1.plt...unless we're writing to stdout. */ + if (0 == strcmp(fname, "-")) { + file_out = xfopen(fname, "wb", MYNAME); + return; + } + if ((track_out_count) && (ozi_objective == trkdata)) { sprintf(buff, "-%d", track_out_count); } else { -- 2.30.2